<?php
strtolower(basename($_SERVER['PHP_SELF'])) == 'Document.class.php' && header('Location:http://' . $_SERVER['HTTP_HOST']); //禁止直接访问本页
   require_once 'db.php';
   class Document{
   	  public $id;
	  public $title;
	  public $author;
   }
?>
